* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    color: #334155;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 32px;
    background: #ffffff;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
    letter-spacing: -0.025em;
}

header p {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 400;
}

.flow-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stage {
    background: #f8fafc;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s ease;
}

.stage:hover {
    border-color: #cbd5e1;
}

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.stage-header h2 {
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: 700;
}

.stage-badge {
    background: #3b82f6;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.stage-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.step-group {
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 24px;
    border-left: 5px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 16px 0 0 16px;
}

.step-group:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.step-group h3 {
    color: #2d3748;
    margin-bottom: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-left: 8px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step {
    background: rgba(255, 255, 255, 0.9);
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-weight: 500;
    color: #4a5568;
}

.step-detail {
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 6px;
    font-size: 12px;
    color: #e1e4e8;
    border-left: 3px solid #58a6ff;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 100px;
    overflow-y: auto;
}

.step-detail::-webkit-scrollbar {
    width: 6px;
    height: 4px;
}

.step-detail::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.step-detail::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.step-detail::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.step:hover {
    border-left-color: #667eea;
    transform: translateX(6px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
}

.step.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    border-left-color: transparent;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
}

.step.highlight:hover {
    transform: translateX(8px) translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.step.important {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #fd79a8 100%);
    color: white;
    border-left-color: transparent;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    transform: translateX(4px);
}

.step.important:hover {
    transform: translateX(8px) translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.arrow {
    text-align: center;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    margin: 15px 0;
    animation: bounce 2s infinite, pulse 3s infinite;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-12px) scale(1.05);
    }
    60% {
        transform: translateY(-6px) scale(1.02);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.tool-tips {
    background: rgba(248, 250, 252, 0.98);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.tool-tips::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px 20px 0 0;
}

.tool-tips h3 {
    color: #2d3748;
    margin-bottom: 24px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.tip {
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
    border-left: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.tip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 14px 0 0 14px;
}

.tip:hover {
    transform: translateX(6px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.tip h4 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.tip p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .stage-content {
        grid-template-columns: 1fr;
    }
    
    .stage-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 50%, #667eea 100%);
    transform: scale(1.1);
}

/* 加载动画 */
.stage {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.stage:nth-child(1) { animation-delay: 0.1s; }
.stage:nth-child(3) { animation-delay: 0.2s; }
.stage:nth-child(5) { animation-delay: 0.3s; }
.stage:nth-child(7) { animation-delay: 0.4s; }
.stage:nth-child(9) { animation-delay: 0.5s; }
.stage:nth-child(11) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6), 0 0 30px rgba(118, 75, 162, 0.4);
    }
}